/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

/**
 *
 * @author Administrator
 */
public class User {

    private String name;
    private String id;
    private String sex;
    private String major;
    private String passwords;
    private String email;
    private String telephone;
    private String isadmin;
    private String QQ;
    private String add;
    private String clas;

    public User(String id,String passwords,String name,  String sex, String isadmin,String major,   String clas,String telephone,  String QQ, String email,String add ) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.major = major;
        this.passwords = passwords;
        this.email = email;
        this.telephone = telephone;
        this.isadmin = isadmin;
        this.QQ = QQ;
        this.add = add;
        this.clas = clas;
    }

    public User() {
    }


    @Override
    public String toString() {
        return "'" + getId() + "','" + getName() + "','" + getSex() + "','" + getPasswords() + "','" + getEmail() + "','" + getTelephone() + "','" + getIsadmin() + "'";
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * @return the major
     */
    public String getMajor() {
        return major;
    }

    /**
     * @param major the major to set
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * @return the passwords
     */
    public String getPasswords() {
        return passwords;
    }

    /**
     * @param passwords the passwords to set
     */
    public void setPasswords(String passwords) {
        this.passwords = passwords;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * @param telephone the telephone to set
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * @return the isadmin
     */
    public String getIsadmin() {
        return isadmin;
    }

    /**
     * @param isadmin the isadmin to set
     */
    public void setIsadmin(String isadmin) {
        this.isadmin = isadmin;
    }

    /**
     * @return the QQ
     */
    public String getQQ() {
        return QQ;
    }

    /**
     * @param QQ the QQ to set
     */
    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    /**
     * @return the add
     */
    public String getAdd() {
        return add;
    }

    /**
     * @param add the add to set
     */
    public void setAdd(String add) {
        this.add = add;
    }

    /**
     * @return the clas
     */
    public String getClas() {
        return clas;
    }

    /**
     * @param clas the clas to set
     */
    public void setClas(String clas) {
        this.clas = clas;
    }
}
